package fms.msgupcenter.protocols.uplinkmsg;

import fms.msgupcenter.protocols.AcarsProtocol;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午2:48
 * To change this template use File | Settings | File Templates.
 */
@XmlRootElement(name="acars")
@XmlAccessorType(XmlAccessType.FIELD)  // 必须要添加这个注解，类中的元素注解才能别识别，否则序列化时报异常
public class WindMsgProtocol extends AcarsProtocol {

    @XmlElement(name = "body")
    public WindMsgProtocolBody body;

    public WindMsgProtocol(){
        WindMessage windMessage = new WindMessage();
        //uplinkMessage.setData(new UplinkMessageData());
        //uplinkMessage.setHead(new UplinkMsgHead());

        body = new WindMsgProtocolBody();
        body.windMessage = windMessage;
    }
}
